AUX_SOURCE_DIRECTORY(nedmalloc NEDMALLOC)

SET(REVELDB_SRC
    evhttpx/evhttpx.c
    evhttpx/evthr/evthr.c
    evhttpx/httpparser/http-parser.c
    engine/xleveldb.c
    regex/regex.c
    uuid/arc4random.c
    uuid/uuid.c
    server.c
    reveldb.c
    cJSON.c
    xconfig.c
    log.c
    rpc.c
    iter.c
    snapshot.c
    writebatch.c
    rbtree.c
    splaytree.c
    tstring.c
    vasprintf.c
    utility.c
    )

ADD_EXECUTABLE(reveldb ${REVELDB_SRC})

# LINK_DIRECTORIES(${REVELDB_EXTERNAL_LIBS})

TARGET_LINK_LIBRARIES(reveldb ${REVELDB_EXTERNAL_LIBS} pthread m)
